//
//  PageContentView.h
//  YuDou
//
//  Created by yingqi on 2018/6/22.
//  Copyright © 2018年 yingqi. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PageContentView;

@protocol PageContentViewDelegate<NSObject>

- (void)pageContentView:(PageContentView *)pageContentView progress:(CGFloat)progress sourceIndex:(NSInteger)sourceIndex targetIndex:(NSInteger)targetIndex;

@end

@interface PageContentView : UIView

@property (nonatomic, weak) UIViewController *parentVc;
@property (nonatomic, weak) id<PageContentViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame childVcs:(NSArray <UIViewController *>*) childVcs parentVc:(UIViewController *)parentVc;

- (void)setCurrentIndex:(NSInteger)currentIndex;
@end
